﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebFatura
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnGiris_Click(object sender, EventArgs e)
        {
            Mikro mk = new Mikro();
            var sonuc = mk.KullaniciGiris(txtUsername.Text, txtPassword.Text);
            if (sonuc.Item1 > -1)
            {
                Session["userno"] = sonuc.Item1;
                Session["seri"] = sonuc.Item2;
                Response.Redirect("/Menu.aspx");
            }
        }
    }
}